#!/bin/sh

#-Dgnu.io.rxtx.SerialPorts=<your non-standard serial port>
#-Djetty.port=<port other than 8080>

OPENJAWS_SCRIPT=$0
if [ -h "${OPENJAWS_SCRIPT}" ] ; then
   OPENJAWS_SCRIPT=`readlink -f "$0"`
fi

OPENJAWS_HOME=`dirname ${OPENJAWS_SCRIPT}`
OPENJAWS_CLASSPATH="./resources"
for jar in $OPENJAWS_HOME/*.jar
do
   OPENJAWS_CLASSPATH="${OPENJAWS_CLASSPATH}:${jar}"
done

MAIN_CLASS=au.com.lastweekend.openjaws.jetty.JettyLauncher
WAR_FILE=openjaws-web*.war

java -cp $OPENJAWS_CLASSPATH $* $MAIN_CLASS $WAR_FILE